@echo off

setlocal

if exist make_windows.bat goto ok
echo make_windows.bat must be run from its folder
goto end

:ok

set OLDGOPATH=%GOPATH%
set GOPATH=%~dp0

gofmt -tabs=false -tabwidth=4 -w src

go install bbs

move bin/app www/bbs

:end
echo finished
